﻿<Window x:Class="Bing.Spell.SpellWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="BingSpell with Bing#" Height="274" Width="396" Icon="/Bing.Spell;component/Images/SpellCheck.png">
    <Window.Resources>
        <Style TargetType="{x:Type Label}">
            <Setter Property="Margin" Value="3" />
        </Style>
        <Style TargetType="{x:Type TextBox}">
            <Setter Property="Margin" Value="3" />
            <Setter Property="VerticalAlignment" Value="Center" />
        </Style>
        <Style TargetType="{x:Type Button}">
            <Setter Property="Margin" Value="3" />
            <Setter Property="VerticalAlignment" Value="Center" />
        </Style>
    </Window.Resources>
    <Grid>

        <Label Margin="12,12,0,0" Height="23" HorizontalAlignment="Left" VerticalAlignment="Top" Width="57">App Id :</Label>
        <TextBox x:Name="txtAppId" Margin="123,12.326,12,0" Height="19.276" VerticalAlignment="Top" />
        <Label VerticalAlignment="Top" DockPanel.Dock="Left" Height="23.277" Margin="12,41,0,0" HorizontalAlignment="Left" Width="105">Check Spelling:</Label>
        <Button x:Name="btnCheckSpelling" DockPanel.Dock="Right" Click="btnCheckSpelling_Click" HorizontalAlignment="Right" Margin="0,68,12,0" Width="118" Height="39" VerticalAlignment="Top">
            <StackPanel Orientation="Horizontal" >
                <Image Source="/Bing.Spell;component/Images/SpellCheck.png" Width="16" Height="16"/>
                <Label>Check Spelling</Label>
            </StackPanel>
        </Button>
        <Image x:Name="imgWordGood" DockPanel.Dock="Right" Width="24" Height="24" VerticalAlignment="Top" Margin="0,38,12,0" HorizontalAlignment="Right"></Image>
        <TextBox x:Name="txtCheckWord" VerticalAlignment="Top" Height="19.277" Margin="123,41,42,0">speling</TextBox>
        <Expander Header="Results" Name="expander1" Margin="12,113,12,12">
            <Grid>
                <TextBlock x:Name="txtResults"></TextBlock>
            </Grid>
        </Expander>
    </Grid>
</Window>
